-
Notifications
You must be signed in to change notification settings - Fork 248
feat: support design tokens and paragon 23 #1588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Thanks for the pull request, @dcoa! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
c51133f
to
80ea053
Compare
Nice, thanks! Let me know when this is ready for review. |
80ea053
to
77b9712
Compare
bc40e90
to
66f4505
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1588 +/- ##
==========================================
- Coverage 90.38% 90.38% -0.01%
==========================================
Files 341 341
Lines 5752 5751 -1
Branches 1345 1382 +37
==========================================
- Hits 5199 5198 -1
+ Misses 536 534 -2
- Partials 17 19 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
96499bf
to
490dcdf
Compare
Sandbox deployment failed 💥 |
490dcdf
to
631f420
Compare
Sandbox deployment failed 💥 |
631f420
to
464b438
Compare
Sandbox deployment failed 💥 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this is looking wonderful!
I left a couple comments that tie into discussions on other PRs, but once we have some context on those this should be ready to merge!
@@ -36,7 +36,7 @@ const CelebrationModal = ({ | |||
<StandardModal | |||
footerNode={( | |||
<ActionRow isStacked className="pb-2"> | |||
<Button onClick={onClose}>{intl.formatMessage(messages.forward)}</Button> | |||
<Button className="btn-primary" onClick={onClose}>{intl.formatMessage(messages.forward)}</Button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this another way to handle the issue we're discussing on the authn PR (openedx/frontend-app-authn#1436 (comment))? If so, I'm thinking maybe in this case there's a way to continue to @extend
by using @use
instead of @import
somewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit confused about this one.
We should be getting the btn-primary
when we are using the primary
variant of Button
, which is the default variant, so it's surprising to me that btn-primary
isn't showing up without being added manually like this.
background-color: #f1f1f1 !important; | ||
border: solid 1px #ddd !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious as to why this wasn't an issue before but is now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is similar what is happening in discuss, the button is transparent loosing the color during the hover,
After
To be more specific:
The bg-color
in button is associated to the variant (primary, brand, etc), by default the .btn
class use a transparent and because the styles are applying to the element itself (but not the hover), the transparent get precedence over the defined styles here.
src/courseware/course/sidebar/sidebars/course-outline/CourseOutlineTray.scss
Show resolved
Hide resolved
&:last-child .pgn_collapsible { | ||
@extend .mb-0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious as to why we don't need to set margin bottom to zero here anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be there 🙈, just is a new line to add to the extend discussion.
464b438
to
f5ec395
Compare
f5ec395
to
0a7c925
Compare
Sandbox deployment failed 💥 |
@import "~@openedx/paragon/scss/core/core"; | ||
@import "~@edx/brand/paragon/overrides"; | ||
|
||
@use "~@edx/brand/paragon/overrides"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is causing the sandbox not deployed.
Sandbox deployment successful 🚀 |
Warning
This PR should not be merge to
master
directly, it should point tomaster-design-tokens
once the branch has been created.Description
This PR updates frontend app learning to support CSS variables and the corresponding paragon design tokens.
Changes implemented
Important
This PR requires a compatible version with paragon 23 of dependencies because of that the following PRs need to be merged first: